package request

import "cloud-disk/model/entity"

type CreateShare struct {
	Identities []string `json:"identities"`
	// 0 for forever
	ParentIds   []int `json:"parentIds"`
	ExpiredTime int   `json:"expiredTime"`
}

type AccessShare struct {
	Identity string `json:"identity"`
}

type AccessShareFile struct {
	Identity string `json:"identity"`
	Code     string `json:"code"`
}

type SaveShare struct {
	// currUser需要保存的目录Id
	ParentId       int                   `json:"parentId"`
	OriginRepoInfo entity.UserRepository `json:"originRepoInfo"`
}
